package br.com.monise.dao;

import javax.persistence.EntityManager;
import javax.persistence.Query;

import br.com.monise.model.HistoricoDeAvaliacao;
import br.com.monise.model.Usuario;
import br.com.monise.model.UsuarioArtigoPK;
import br.com.monise.util.GenericDao;

public class HistoricoAvaliacaoDao extends GenericDao<HistoricoDeAvaliacao> {

	 public HistoricoDeAvaliacao consultarPorId(UsuarioArtigoPK id){
		EntityManager manager = getEntityManager();
						
		HistoricoDeAvaliacao historico = null;
	    try {
	      historico = manager.find(HistoricoDeAvaliacao.class, id);
	    } finally {
	      manager.close();
	    }
	    return historico;
		}
}
